package com.sakiko.audiobook.album.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakiko.audiobook.model.album.BaseAttribute;
import com.sakiko.audiobook.model.album.BaseCategory1;
import com.sakiko.audiobook.model.album.BaseCategory3;
import com.sakiko.audiobook.model.album.BaseCategoryView;

import java.util.List;

public interface BaseCategoryService extends IService<BaseCategory1> {
    /**
     * 获取分类数据
     *
     * @return categoryList
     */
    List<JSONObject> getBaseCategoryList();

    /**
     * 根据一级分类 Id获取属性与属性值集合
     * @param category1Id
     * @return List<BaseAttribute>
     */
    List<BaseAttribute> findAttribute(Long category1Id);

    /**
     * 根据三级分类 id获取分类信息
     * @param category3Id
     * @return
     */
    BaseCategoryView getBaseCategoryViewByCategoryId(Long category3Id);

    /**
     * 根据一级分类Id查询分类数据
     * @param category1Id
     * @return
     */
    JSONObject getBaseCategoryList(Long category1Id);

    /**
     * 根据一级分类Id获取三级分类的指定数据
     * @param category1Id
     * @return
     */
    List<BaseCategory3> findTopBaseCategory3(Long category1Id);
}

